<script setup lang="ts">
import { RouterLink } from 'vue-router'
import { User } from '@element-plus/icons-vue'
</script>

<template>
  <el-header class="header">
    <div class="header-content w">
      <div class="logo">
        <RouterLink to="/">
          Payment Demo System
        </RouterLink>
      </div>
      <el-menu
        mode="horizontal"
        :router="true"
        :ellipsis="false"
        class="nav-menu"
      >
        <el-menu-item index="/">
          <el-icon><User /></el-icon>
          <span>User</span>
        </el-menu-item>
      </el-menu>
    </div>
  </el-header>
</template>

<style scoped lang="less">
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0;

  .header-content {
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .logo {
      font-size: 20px;
      font-weight: bold;
      display: flex;
      align-items: center;
      
      a {
        color: #2c3e50;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        transition: all 0.3s ease;
        background: linear-gradient(45deg, #409EFF, #67C23A);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 800;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        
        &:hover {
          transform: translateY(-1px);
          text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
        }
        
        &::after {
          content: '';
          position: absolute;
          bottom: -2px;
          left: 0;
          width: 100%;
          height: 2px;
          background: linear-gradient(90deg, #409EFF, #67C23A);
          transform: scaleX(0);
          transition: transform 0.3s ease;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        &:hover::after {
          transform: scaleX(1);
        }
      }
    }
    .nav-menu {
      border-bottom: none;
      background-color: transparent;
      max-width: 800px;
    }
  }
}
</style> 